package request

type UserLogin struct {
	Username string `json:"username" form:"username" binding:"required"`
	Password string `json:"password" form:"password" binding:"required"`
}

type AddCourse struct {
	CourseName    string  `json:"course_name" form:"course_name" binding:"required"`
	CourseInfo    string  `json:"course_info" form:"course_info" `
	CourseContent string  `json:"course_content" form:"course_content"`
	CoursePrice   float32 `json:"course_price" form:"course_price" binding:"required"`
	Status        int64   `json:"status" form:"status" binding:"required"`
}

type CourseInfo struct {
	Id int64 `json:"id" form:"id" binding:"required"`
}

type UpdateCourse struct {
	Id            int64   `json:"id" form:"id" binding:"required"`
	CourseName    string  `json:"course_name" form:"course_name" binding:"required"`
	CourseInfo    string  `json:"course_info" form:"course_info" `
	CourseContent string  `json:"course_content" form:"course_content"`
	CoursePrice   float32 `json:"course_price" form:"course_price" binding:"required"`
	Status        int64   `json:"status" form:"status" binding:"required"`
}

type AddCoursePanic struct {
	CourseId  int64  `json:"course_id" form:"course_id" binding:"required"`
	Num       int64  `json:"num" form:"num" binding:"required"`
	StartTime string `json:"start_time" form:"start_time" binding:"required"`
	EndTime   string `json:"end_time" form:"end_time" binding:"required"`
	Status    int64  `json:"status" form:"status" binding:"required"`
}

type AddOrder struct {
	CourseId int64 `json:"course_id" form:"course_id" binding:"required"`
	Num      int64 `json:"num" form:"num" binding:"required"`
}
